Improve compiler detection for __builtin_popcount()
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 23 Sep 2015 10:01:46 +0000 (11:01 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 23 Sep 2015 12:58:50 +0000 (13:58 +0100)
commita080cb40b90e9893fd9dd0c47367808744c17e22
tree4e5fd0582e607cd54fae30e0704ec8969f948641
parent3c54fbd3acb572d8b7e6022bc3de496689a9bb62
Improve compiler detection for __builtin_popcount()

The popcount builtin was added in GCC after version 4.2 (which is what
some *BSDs are using), which means we need to be more specific when
using it than just asking for GCC.

While we're at it, we can improve the compiler detection, and use a
builtin popcount on Clang ≥ 3.1 and MSVC 2008.

https://bugzilla.gnome.org/show_bug.cgi?id=755455
gtk/gtkcssselector.c